const path = require('path');
module.exports = {
    entry: './src/index.js',
    output: {
        publicPath: '/dist',
        filename: 'bunrl.js'
    },
    module:{   // 第三方模块配置规则
      rules:[
          {test:/\.js|jsx$/ , use:{
              loader:'babel-loader',
              options: {
                  presets:['@babel/preset-env']}
          }, exclude: /node_modules/}    // 添加排除项
      ]
  },
  devServer: {
      open: true,
      // openPage: './main.html',
  }
}